package com.android.plc.util;

import android.content.Context;
import android.content.SharedPreferences;

public class PrefUtil
{
	public static final String SETTING_PREF = "setting";

	public static String PREF_ADDRESS = "address_preference";
	public static String PREF_PORT = "port_preference";
	public static String PREF_USER = "user_preference";
	public static String PREF_PSW = "psw_preference";
	public static String PREF_CHANNEL = "channel_preference";

	public static final String PREF_HOME_NAME = "home_name";
	public static final String PREF_USER_CODE = "user_code";
	public static final String PREF_IS_SINGLE = "isSingle";
	public static final String PREF_ROMOTE_ADDRESS = "address";

	public static final String PREF_HOME_CONTROL = "home_control";

	public static SharedPreferences getPreferences(Context context)
	{
		return context.getSharedPreferences(SETTING_PREF, Context.MODE_PRIVATE);
	}
}
